<template>
<!-- 二级标题 -->
  <div class="sec-level-title">
    <div class="title">{{ title }}</div>
    <slot name="other" />
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String
    }
  }
}
</script>
<style lang="less" scoped>
.sec-level-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  .title {
    font-size: 16px;
    line-height: 22px;
    &::before {
      content: '';
      background: #4D98FF;
      border-radius: 2px;
      height: 18px;
      width: 4px;
      display: inline-block;
      vertical-align: sub;
      margin-right: 4px;
    }
  }
  .other-text {
    font-size: 13px;
    color: #999;
  }
}
</style>